package com.example.factory;

/**
 * @Description : 抽象工厂类
 * @Author : Bruce Lee
 * @CreateTime : 2025/3/14
 */

public abstract class ShapeFactory {

    private Jimu jimu;

    public abstract Jimu createJimu();

    public ShapeFactory(){
        jimu = createJimu();
    }

    public void createTable(){
        jimu.createTable();
    }

    public void createBed(){
        jimu.createBed();
    }

}
